<?php

App::uses('AppController', 'Controller');

class AjaxController extends AdminAppController {
	
	public $uses = array('City');
	
	public $components = array('RequestHandler');
	
	public function beforeFilter() {
		parent::beforeFilter();
		$this->Auth->allow('*');
	}
	
	public function cities() {
		$cities = $this->City->find('all', array (
			'recursive' => 0,
			'order' => 'City.name ASC'
		));
		$this->set(compact('cities'));
		$this->set('_serialize', array('cities'));
	}
	
}